#include "util/Subject.h"

void Subject::addObserver(Observer* observer) {
	this->observers.append(observer);
}

void Subject::notifyObservers() {
	util::LinkedList<Observer>::Iterator it = this->observers.iterator();
	while (it.hasNext()) {
		it.next()->notify();
	}
}
